﻿using System;
using System.Configuration;
using Microsoft.Owin.Hosting;
using Sustainalytics.Websites.Client.Library;

namespace Sustainalytics.Websites.Client.ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                using (WebApp.Start<Startup>(ConfigurationManager.AppSettings["hostUrl"]))
                {
                    Console.WriteLine("Started on: " + ConfigurationManager.AppSettings["hostUrl"]);
                    Console.ReadKey();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.InnerException);
                Console.ReadKey();
            }
        }
    }
}
